import java.io.FileWriter;
import java.io.IOException;
import java.io.Writer;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 22652
 * Date: 2024-04-27
 * Time: 12:12
 */
public class demo_3 {
    public static void main(String[] args)throws IOException {
        try(Writer writer= new FileWriter("C:\\Users\\22652\\Desktop\\程序\\2.txt")){
            writer.write('说');
            writer.write('话');
            writer.write('啊');
            writer.write("hello java");
            writer.flush();
        }
    }
}
